package com.supreme.consumerserver.applistener;

import com.supreme.common.entityRocketmq.MQLogger;
import com.supreme.consumerserver.applistener.event.LoggerEvent;
import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Component;

@Component
public class RequestLoggerListener implements ApplicationListener<LoggerEvent> {

    @Override
    public void onApplicationEvent(LoggerEvent loggerEvent) {
        MQLogger logger = (MQLogger) loggerEvent.getSource();
        System.out.println("RequestLoggerListener logger: " + logger);
    }
}
